package com.kang.dao;

import java.util.List;

import com.kang.pojo.Picking;
import com.vonechina.entity.page.PickingPage;

/**
 * 领用记录持久层
 * 
 * @author zs614
 *
 */
public interface PickingMapper {
	/**
	 * 查询最大领用记录编号
	 * 
	 * @return
	 */
	public String selectMaxCode();

	/**
	 * 分页查询领用记录
	 * 
	 * @param page
	 *            搜索条件实体类
	 * @return
	 */
	public List<Picking> listPicking(PickingPage page);

	/**
	 * 查询领用记录条数
	 * 
	 * @param page
	 *            搜索条件实体类
	 * @return
	 */
	public Integer countPicking(PickingPage page);

	/**
	 * 新增领用记录
	 * 
	 * @param picking
	 *            领用记录实体类
	 * @return
	 */
	public Integer insertPicking(Picking picking);

	/**
	 * 根据ID查询领用记录信息
	 * 
	 * @param pickingID
	 *            领用记录ID
	 * @return
	 */
	public Picking selectPickingByID(Integer pickingID);

	/**
	 * 更新领用记录ID
	 * 
	 * @param picking
	 *            领用记录实体类
	 * @return
	 */
	public Integer updatePicking(Picking picking);

	/**
	 * 根据ID删除领用记录
	 * 
	 * @param pickingID
	 * @return
	 */
	public Integer deletePicking(Integer pickingID);
}